package com.hotel.management.exception;

/**
 * 员工未找到异常类
 * 当查询的员工不存在时抛出此异常
 * 
 * @author Hotel Management Team
 * @version 1.0.0
 * @since 2024-06-28
 */
public class EmployeeNotFoundException extends BusinessException {

    private static final long serialVersionUID = 1L;

    /**
     * 默认构造函数
     */
    public EmployeeNotFoundException() {
        super("EMPLOYEE_NOT_FOUND", "员工信息未找到");
    }

    /**
     * 带消息的构造函数
     */
    public EmployeeNotFoundException(String message) {
        super("EMPLOYEE_NOT_FOUND", message);
    }

    /**
     * 带员工ID的构造函数
     */
    public EmployeeNotFoundException(Long employeeId) {
        super("EMPLOYEE_NOT_FOUND", "员工ID为 " + employeeId + " 的员工信息未找到");
    }

    /**
     * 带消息和原因的构造函数
     */
    public EmployeeNotFoundException(String message, Throwable cause) {
        super("EMPLOYEE_NOT_FOUND", message, cause);
    }
}
